<template>
    <div>
      <van-nav-bar :title="$route.meta.title" />
      <div id="body-content">
        <router-view></router-view>
      </div>
    </div>
</template>

<script>
export default {
  name: 'App'
}
</script>

<style scoped>
* {
  padding: 0px;
  margin: 0px;
}

#body-content {
  position: fixed;
  top: 46px;
  width: 100%;
  bottom: 0px;
  overflow: hidden;
}

.v-enter {
  opacity: 0;
  transform: translateX(100%);
}

.v-leave-to {
  opacity: 0;
  transform: translateX(-100%);
  position: absolute;
}

.v-enter-active,
.v-leave-active {
  transition: all 0.5s ease;
}
</style>